<?php
$this->breadcrumbs=array(
	Yii::t('labs', 'Labs')
);

$this->menu=array(
	array('label'=>'Create Project', 'url'=>array('create')),
	array('label'=>'Manage Project', 'url'=>array('admin')),
);
?>
<div class="post-items project-feed">

<?php $i = 1;?>
<?php foreach($dataProvider as $data):?>

<?php $this->renderPartial('_view',array('data'=>$data,'i'=>$i));?>

<?php $i++;?>

<?php endforeach;?>

</div>

<?php 
$this->widget('ext.paginate.yiinfinite-scroll.YiinfiniteScroller', array(
    'contentSelector' => '.post-items',
    'itemSelector' => '.post-block',
//	'loadingImg'=>'http://i.imgur.com/qkKy8.gif',
	'loadingImg'=>'/public/images/loading.gif',
	'loadingText'=>'正在加载内容……',
//    'loadingText' => '<hr /><img src="" />',
    'donetext' => '亲，没有了……',
	'extraScrollPx'=>40,
    'pages' => $pages,
	'func'=>'function(newElements) {
			$(".post-items").isotope( "appended", $(newElements) );
		 
	}'

));
?>
<script type="text/javascript">
$(function(){


    var $container = $('.post-items');
  
    $container.isotope({
      itemSelector : '.post-block',
      layoutMode:'masonry',
    });

  
  });
</script>